<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="(item, index) in banners" :key="index">
        <img :src="item">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script setup lang="ts" name="detailBanner">

defineProps< { banners: string[] } >()

</script>

<style lang="scss" scoped>
.my-swipe{
  height: 300px;
  width: 100%;

  img{
    width: 100%;
    height: 100%;
    display: block;
  }
}
.box .header[data-v-7a7a37b1]{
  height: 0px;
}
</style>